package com.ruoyi.message.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程对象 course
 * 
 * @author zsc
 * @date 2023-04-07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Course extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 课程编号 */
    private Long id;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String name;

    /** 课程介绍 */
    @Excel(name = "课程介绍")
    private String info;

    /** 课程教练 */
    @Excel(name = "课程教练")
    private Long coachId;

    private String coachName;

    /** 课程价格 */
    @Excel(name = "课程价格")
    private Long price;

    /** 课程类型（1:团课  2:专题课  3:私教课） */
    @Excel(name = "课程类型", readConverterExp = "1=:团课,2=:专题课,3=:私教课")
    private String type;

    /**  */
    @Excel(name = "")
    private String day;

    /** 开始时间 */
    @Excel(name = "开始时间")
    private String beginTime;

    /** 结束时间 */
    @Excel(name = "结束时间")
    private String endTime;

    /** 课程图片 */
    @Excel(name = "课程图片")
    private String image;

    /** 关键词 */
    @Excel(name = "关键词")
    private String keyword;

    /** 可预约人数 */
    @Excel(name = "可预约人数")
    private Long amount;

    public void setCoachName(String coachName) {
        this.coachName = coachName;
    }

    public String getCoachName() {
        return coachName;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setInfo(String info) 
    {
        this.info = info;
    }

    public String getInfo() 
    {
        return info;
    }
    public void setCoachId(Long coachId) 
    {
        this.coachId = coachId;
    }

    public Long getCoachId() 
    {
        return coachId;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setDay(String day) 
    {
        this.day = day;
    }

    public String getDay() 
    {
        return day;
    }
    public void setBeginTime(String beginTime) 
    {
        this.beginTime = beginTime;
    }

    public String getBeginTime() 
    {
        return beginTime;
    }
    public void setEndTime(String endTime) 
    {
        this.endTime = endTime;
    }

    public String getEndTime() 
    {
        return endTime;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setKeyword(String keyword) 
    {
        this.keyword = keyword;
    }

    public String getKeyword() 
    {
        return keyword;
    }
    public void setAmount(Long amount) 
    {
        this.amount = amount;
    }

    public Long getAmount() 
    {
        return amount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("info", getInfo())
            .append("coachId", getCoachId())
            .append("coachName", getCoachName())
            .append("price", getPrice())
            .append("type", getType())
            .append("day", getDay())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("image", getImage())
            .append("keyword", getKeyword())
            .append("amount", getAmount())
            .toString();
    }
}
